package com.liao.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@RequiredArgsConstructor
public class News {

    //wxb_news
    private String oldNewsId;
    @NonNull
    private String newsId;//主键编号
    @NonNull
    private String newsTitle;//资讯标题
    @NonNull
    private String newsContent;//资讯内容

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @NonNull
    private String createTime;//创建时间
}
